package net.godcode.olivenotes.components;

import net.godcode.olivenotes.entities.Post;

import org.apache.tapestry.annotations.Mixin;
import org.apache.tapestry.annotations.Parameter;
import org.apache.tapestry.corelib.mixins.DiscardBody;

/**
 * ViewPost
 * 
 * @author Chris Lewis Dec 29, 2007 <chris@thegodcode.net>
 * @version $Id: ViewPost.java 32 2008-01-22 15:14:31Z burningodzilla $
 */
public class ViewPost {
	
	@SuppressWarnings("unused")
	@Mixin
	private DiscardBody discardBody;
	
	/**
	 * The post to view.
	 */
	@Parameter(required = true)
	private Post post;
	
	/**
	 * A flag indicating if the comment count should be shown.
	 */
	@Parameter(value = "true")
	private boolean commentCount;

	/**
	 * @return the post
	 */
	public Post getPost() {
		return post;
	}
	
	public boolean getCommentCount() {
		return commentCount;
	}
	
}